new Vue({
	el: '#novel_nav',
	data: {
		website: "换源",
		name: ''
	},
	methods: {
		setWebsite: function (data) {
			switch(data){
				case '笔趣阁':
					if(!$("li.bqg.disabled").length) this.website = data;
					break;
				case '顶点小说':
					if(!$("li.ddxs.disabled").length) this.website = data;
					break;
				case '三江阁':
					if(!$("li.sjg.disabled").length) this.website = data;
					break;
				case '小小书屋':
					if(!$("li.xxsw.disabled").length) this.website = data;
					break;
			}
        },
		goto: function () {
			window.location.href = '/novel/search/?website='+this.website+'&name='+this.name;
        }
	},
	computed: {
		gotoNovelPage: function () {
			return '/novel/search/?website='+this.website+'&name='+this.name;
        }
	}
});